home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Shareware World / Utilities / Data & Time Management / MacCalendar / MakeFile < prev    next >
Makefile  |  1994-10-20  |  4KB  |  167 lines

  1. #
  2. # MacCalendar
  3. # Copyright © 1994 Apple Computer Inc. All rights reserved.
  4. # This MakeFile builds the MacCalendar Control Strip and
  5. # the resource file needed for the MetroWerks DR3 compilation.
  6. #
  7. Src                =    ":Src:"
  8. Obj                =    ":Obj:"
  9.  
  10. Objects            =                        ∂
  11.         {Obj}MacCalendar.c.o            ∂
  12.         {Obj}DrawCalendar.c.o
  13.  
  14. AppObjects        =                        ∂
  15.         {Obj}DrawCalendar.c.ao            ∂
  16.         {Obj}MacCalendarSetup.c.ao        ∂
  17.         {Obj}OpenPreferenceFile.c.ao
  18.  
  19. Headers            =                        ∂
  20.         {Src}MacCalendar.h                ∂
  21.         {Src}MacCalendarSetup.h            ∂
  22.         {Src}ControlStrip.h
  23.  
  24. #
  25. # Directory Dependencies. Sources are in the {Src} subdirectory,
  26. # Objects in the {Obj} subdirectory.
  27. #
  28. {Obj}                ƒ    {Src}
  29.  
  30. #
  31. # Compiler option configuration
  32. #    .c.o        MacCalendar objects
  33. #    .c.ao        MacCalendar Setup objects
  34. #
  35. # Status Bar Compiler Dependencies
  36. #
  37. .c.o ƒ .c                                ∂
  38.         {Src}MacCalendar.h                ∂
  39.         {Src}ControlStrip.h
  40.     C {COptions} -b2 -mbg full -trace never -r    ∂
  41.         -d MPW                            ∂
  42.         -o {TargDir}{Default}.c.o        ∂
  43.         {DepDir}{Default}.c
  44.  
  45. #
  46. # MacCalendar Setup Compiler Dependencies
  47. #
  48. .c.ao ƒ .c                                ∂
  49.         {Src}MacCalendar.h
  50.     C {COptions} -mbg full -trace never -r    ∂
  51.         -d MPW                            ∂
  52.         -o {TargDir}{Default}.c.ao        ∂
  53.         {DepDir}{Default}.c
  54. #
  55. # Build the MetroWerks resources
  56. #
  57. MetroWerks ƒ                                ∂
  58.     "MacCalendar Setup.µ.rsrc"                ∂
  59.     "MacCalendar.µ.rsrc"
  60.         echo "MetroWerks resources created"
  61.  
  62. #
  63. # Build the Control Strip module
  64. #
  65. "MacCalendar"    ƒƒ                                ∂
  66.             "MacCalendar Setup MPW"                ∂
  67.             Makefile                            ∂
  68.             {Headers}                            ∂
  69.             {Objects}            
  70.         Link                                    ∂
  71.             -w                                    ∂
  72.             -o {targ}                            ∂
  73.             -t sdev                                ∂
  74.             -c SCAL                                ∂
  75.             -m MAIN                                ∂
  76.             -sg "MacCalendar"                    ∂
  77.             -ra "MacCalendar"=resPurgeable        ∂
  78.             -rt sdev=0                            ∂
  79.             {Objects}                            ∂
  80.             "{Libraries}"Runtime.o                ∂
  81.             "{Libraries}"Interface.o
  82.  
  83. "MacCalendar"    ƒƒ                                ∂
  84.             "MacCalendar Setup MPW"                ∂
  85.             Makefile                            ∂
  86.             "MacCalendar.µ.rsrc"                ∂
  87.             {Headers}                            ∂
  88.             {Objects}                            ∂
  89.             {Src}MacCalendar.r                    ∂
  90.             "MacCalendarIcons.rsrc"                ∂
  91.             MakeFile
  92.         Rez                                        ∂
  93.             -o {targ}                            ∂
  94.             -append                                ∂
  95.             -t sdev                                ∂
  96.             -c SCAL                                ∂
  97.             -i "{CIncludes}"                    ∂
  98.             -i "{RIncludes}"                    ∂
  99.             -d MPW=1                            ∂
  100.             {Src}MacCalendar.r
  101.  
  102. #
  103. # Build the configuration application.
  104. #
  105. "MacCalendar Setup MPW" ƒƒ                        ∂
  106.             Makefile                            ∂
  107.             {Headers}                            ∂
  108.             {AppObjects}
  109.         Link                                    ∂
  110.             -t APPL                                ∂
  111.             -c SCCF                                ∂
  112.             {AppObjects}                        ∂
  113.             "{Libraries}"Runtime.o                ∂
  114.             "{Libraries}"Interface.o            ∂
  115.             -o {targ}
  116.  
  117. "MacCalendar Setup MPW" ƒƒ                        ∂
  118.             Makefile                            ∂
  119.             {Headers}                            ∂
  120.             "MacCalendarSetupIcons.rsrc"        ∂
  121.             {Src}MacCalendarSetup.r
  122.         Rez                                        ∂
  123.             -o {targ}                            ∂
  124.             -append                                ∂
  125.             -t APPL                                ∂
  126.             -c SCCF                                ∂
  127.             -d MPW=1                            ∂
  128.             -i "{CIncludes}"                    ∂
  129.             -i "{RIncludes}"                    ∂
  130.             {Src}MacCalendarSetup.r
  131.  
  132. #
  133. # This builds a project resource file for the
  134. # Metrowerks DR3 environment.
  135. #
  136. "MacCalendar.µ.rsrc" ƒ                        ∂
  137.         MakeFile                            ∂
  138.         "MacCalendarIcons.rsrc"                ∂
  139.         "MacCalendar Setup.µ.rsrc"            ∂
  140.         {Src}MacCalendar.h                    ∂
  141.         {Src}MacCalendar.r
  142.     Rez                                        ∂
  143.         {Src}MacCalendar.r                    ∂
  144.         -append                                ∂
  145.         -t rsrc                                ∂
  146.         -c RSED                                ∂
  147.         -d "MPW=1"                            ∂
  148.         -i "{CIncludes}"                    ∂
  149.         -i "{RIncludes}"                    ∂
  150.         -o {targ}
  151.  
  152. "MacCalendar Setup.µ.rsrc" ƒ                ∂
  153.         MakeFile                            ∂
  154.         "MacCalendarSetupIcons.rsrc"        ∂
  155.         {Src}MacCalendar.h                    ∂
  156.         {Src}MacCalendarSetup.h                ∂
  157.         {Src}MacCalendarSetup.r
  158.     Rez                                        ∂
  159.         {Src}MacCalendarSetup.r                ∂
  160.         -append                                ∂
  161.         -t rsrc                                ∂
  162.         -c RSED                                ∂
  163.         -d "MPW=1"                            ∂
  164.         -i "{CIncludes}"                    ∂
  165.         -i "{RIncludes}"                    ∂
  166.         -o {targ}
  167.